class Config(object):
    SECRET_KEY = "wf@north.net"
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:a123456.@192.168.123.159:3306/EIM?charset=utf8"
    SQLALCHEMY_POOL_SIZE = 5
    SQLALCHEMY_POOL_TIMEOUT = 15
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    # 使用之前对连接池中连接的活性进行验证，释放失效连接
    SQLALCHEMY_ENGINE_OPTIONS = {"pool_pre_ping": True}
    SQLALCHEMY_ECHO = True
    MONGO_DATABASE_URL = "mongodb://hongqing:a123456.@192.168.123.46"
    UPLOAD_FOLDER = r'D:\\UPLOAD\\'
    ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif', 'zip', 'rar', 'tar', 'ppt','pptx','pdf','doc','docx','xls','xlsx'}
    # token 持有者
    TOKEN_SCHEME = "EIM"

    JOBS = [
        {
            'id': 'job1',
            'func': 'eim:unlock',
            'trigger': 'interval',
            'minutes': 1,
            "misfire_grace_time": 50
        },
        {
            'id': 'job2',
            'func': 'eim:cronTask',
            'trigger': 'cron',
            'day_of_week': '*',
            'month': '*',
            'hour': '21',
            'minute': '0',
            'second': '0',
            'replace_existing': True,
            "misfire_grace_time": 50
        }
    ]
    SCHEDULER_API_ENABLED = True
